using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class UnitLoadConfiguration : EntityTypeConfiguration<UnitLoad>
    {
        public UnitLoadConfiguration()
        {
            Property(g => g.UnitLoadID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
         
            Property(g => g.Modified).IsOptional();
           
            Property(g => g.Location_Index).IsOptional();
            Property(g => g.LabelID).IsRequired();
            Property(g => g.Carrier).IsOptional();
            Property(g => g.CarrierUnitLoadID).IsRequired();
            Property(g => g.Opened).IsOptional();
            Property(g => g.PackageType).IsOptional();
            Property(g => g.StockTakingDate).IsOptional();
            Property(g => g.Weight).IsOptional();
            Property(g => g.WeightCalculated).IsOptional();
            Property(g => g.WeightMeasure).IsOptional();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.StorageLocationID).IsRequired();
            Property(g => g.CarrierUnitLoadID).IsRequired();
            Property(g => g.TypeID).IsRequired();
        }
    }
}
